package com.htpro.controller;

import com.htpro.pojo.Typef;
import com.htpro.service.TypefService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@RestController
public class TypefController {
    @Autowired
    private TypefService ts;
    @GetMapping("/allTypef")
    public List<Typef> allTypef(){
        List<Typef> list = ts.getAllTypeF();
        return list;
    }
}
